package com.weicoder.shop.po

import javax.persistence.Entity
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import org.springframework.context.annotation.Scope
import org.springframework.stereotype.Component
import org.springframework.beans.factory.config.ConfigurableBeanFactory
import com.weicoder.base.annotation.Cache
import com.weicoder.base.entity.EntityFile
import com.weicoder.site.entity.base.BaseEntityIdTime;
import scala.beans.BeanProperty

/**
 * 品牌
 * @author WD
 * @since JDK7
 * @version 1._ 2_12-_1-1_
 */
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Entity
@DynamicInsert
@DynamicUpdate
@Cache
class Brand extends BaseEntityIdTime with EntityFile {
  // 网址
  @BeanProperty
  var url: String = _
  // LOGO
  @BeanProperty
  var path: String = _
  // 描述
  @BeanProperty
  var detail: String = _
  // 名称
  @BeanProperty
  var name: String = _
}
